package com.four.project.service.impl;

import com.four.project.dao.TeacherMapper;
import com.four.project.pojo.Course;
import com.four.project.pojo.Teacher;
import com.four.project.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author zyt
 * @create 2020/7/7 11:44
 */
@Service
public class TeacherServiceImpl implements TeacherService {
    @Autowired
    TeacherMapper teacherMapper;

    @Override
    public List<Teacher> fingdAllById(Integer id) {
        return teacherMapper.findAllById(id);
    }

    @Override
    public Teacher selectMymessage(String name, String password) {
        return teacherMapper.selectMymessage(name,password);
    }

    @Override
    public Integer courseCount(Integer id) {
        return teacherMapper.courseCount(id);
    }

    @Override
    public Integer updateMyMessage(Teacher teacher) {
        return teacherMapper.updateMyMessage(teacher);
    }

    @Override
    public Integer addIdentity(Teacher teacher) {
        return teacherMapper.addIdentity(teacher);
    }
}
